<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>修改头像 - 账户设置 - 爱库网 - ikeepu.com</title>
    <meta name="Keywords" content="爱库, 收藏, ikeepu, 书签, 网络资源, 资源分享, 社会化书签服务, 兴趣图谱, 兴趣社区"/>
    <meta name="Description" content=""/>
    <link type="image/x-icon" href="./favicon.ico" rel="shortcut icon">
    <link type="text/css" rel="Stylesheet" href="css/base.css"/>
    <link type="text/css" rel="Stylesheet" href="css/popup.css"/>
    <link type="text/css" rel="Stylesheet" href="css/other.css"/>
<body>

<?php include 'include/header.php'; ?>

<div class="mainer">
    <div class="container page-container">


        <h1>设置</h1>

        <div class="ptab line">
            <ul>
                <li><a href="/setting">个人资料</a></li>
                <li class="active"><a href="/setting/avatar">修改头像</a></li>
                <li><a href="/setting/password">修改密码</a></li>
                <li><a href="/setting/sync">账户绑定</a></li>
                <li><a href="/setting/remind">消息提醒</a></li>
                <!--<li><a href="/setting/tag">关注的标签</a></li>
              <li><a href="/setting/vip" target="_blank">VIP</a></li>-->
            </ul>
        </div>
        <div class="tips page-tips" style="margin-top: 20px;">
            <div class="panel">
                您可以通过以下几种方式，更换自己的头像～
            </div>
        </div>
        <div id="pSetting">
            <div style="position:absolute; right:100px;">
                <a href="/yangziabc123" class="user100"><img id="userAvatar" src="http://img.ikeepu.com/user/ya/ng/zi/ab/c1/634787314728119842.jpg_100"/></a>
            </div>
            <h2 style=" _height:20px;">1. 本地上传</h2>

            <form action="/setting/updateavatar" method="post" target="uploadAvatarFrame" enctype="multipart/form-data" style="_position:relative;">
                <dl class="formset">
                    <dd style="padding-bottom: 0;">
                        <input type="hidden" name="callback" value="window.parent.$P.Setting.refresh"/>
                        <input type="file" name="file"/>
                        <span class="meta">上传的文件类型为jpg/gif/png/bmp,大小不能超过1MB.</span>
                    </dd>
                    <dd class="button" style="_position:relative; _top:0px;">
                        <input type="submit" class="main" value="上传"/>
                    </dd>
                </dl>
            </form>
            <h2>2. 远程图片</h2>

            <form action="/setting/updateavatarurl" method="post" id="urlAvatarForm">
                <dl class="formset" style="width: 680px;">
                    <dd style="padding-bottom:0;">
                        <input type="text" name="url" hint="输入图片地址" style="width:400px;" onclick="this.select()"/>
                        <span class="meta">比如: http://ikeepu.com/logo.png</span>
                    </dd>
                    <dd class="button">
                        <input type="submit" class="main" value="抓取" style=" _position:relative;_top:210px;"/>
                    </dd>
                </dl>
            </form>
            <iframe name="uploadAvatarFrame" style="display:none"></iframe>
        </div>
    </div>
</div>
<?php $footer = true; include 'include/footer.php'; ?>

<div id="newerHelp">
<a target="_blank" href="/help">新手帮助</a>
</div>
<div id="actionTip" style="display: block; top: 2px">
<a class="success">头像更新成功～</a>
</div>
</body>
</html>
